<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.4.1.min.js"></script>
		<script>
			//外部函数调用jq内部的函数
			function doC1(){
				var c=$.f1(2,5);
				alert(c);
			}
			function doC2(){
				var c=f2(10,3);
				alert(c);
			}
			$(function() {
				/* function f1(a,b){
					return a*b;
				} */
					
				$.extend({"f1":function(a,b){
					return a*b;
				}});
				f2=function(a,b){
					return a**b;
				}
			});
		</script>
	</head>
	<body>
		<input type="button" name="" id="" value="*" onclick="doC1()" />
		<input type="button" name="" id="" value="*****" onclick="doC2()" />
	</body>
</html>
